package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by 黄江华 on 2018/7/23
 */

@ApiModel
public class EditConfigReq extends BaseRequest {

    @NotNull(message = "confId不能为空")
    @Min(value = 1, message = "confId必须大于0")
    private Integer confId;

    @ApiModelProperty("配置key")
    @NotEmpty(message = "配置key不能为空")
    @Length(max = 50, message = "配置key不能超过50个字符")
    private String confKey;

    @ApiModelProperty("配置value")
    @NotEmpty(message = "配置value不能为空")
    @Length(max = 100, message = "配置value不能超过100个字符")
    private String confValue;

    @ApiModelProperty("备注")
    private String remark;

    public Integer getConfId() {
        return confId;
    }

    public void setConfId(Integer confId) {
        this.confId = confId;
    }

    public String getConfKey() {
        return confKey;
    }

    public void setConfKey(String confKey) {
        this.confKey = confKey;
    }

    public String getConfValue() {
        return confValue;
    }

    public void setConfValue(String confValue) {
        this.confValue = confValue;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
